﻿#pragma once
#ifndef _THREAD_NAME_H_
#define _THREAD_NAME_H_
#include <thread>
#include <optional>
#include <string>

namespace as
{
	namespace thread
	{
		std::optional<std::string> GetThreadName(std::thread::id tid);
		std::optional<std::string> GetCurThreadName();
		bool SetThreadName(std::thread::id tid, std::string name);
		uint32_t GetThreadId();
		uint32_t ThreadIdToUInt();
	}
}



#endif